package com.platform.comm.web.results;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.platform.comm.constants.GlobalConstant;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author libin
 */
@Data
public class DateTimeRange implements Serializable {

    /**
     * 开始时间
     */
    @JsonFormat(pattern = GlobalConstant.DATE_TIME_PATTERN)
    @DateTimeFormat(pattern = GlobalConstant.DATE_TIME_PATTERN)
    private LocalDateTime startDateTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = GlobalConstant.DATE_TIME_PATTERN)
    @DateTimeFormat(pattern = GlobalConstant.DATE_TIME_PATTERN)
    private LocalDateTime endDateTime;
}
